package com.iqiao.platform.service;

import com.github.pagehelper.PageInfo;
import com.iqiao.platform.model.Role;

import java.util.Map;

public interface RoleService {

    /**
     * 分页查询
     * @param params
     * @return
     */
    PageInfo<Role> findPage(Map<String, Object> params);

    /**
     * 分页查询
     * @param pageNo
     * @param pageSize
     * @param params
     * @return
     */
    PageInfo<Role> findPage(int pageNo, int pageSize, Map<String, Object> params);

    /**
     * 根据id获取角色信息
     * @param roleId
     * @return
     */
    public Role findById(Long roleId);
}
